From d6780cf3dad729c69a102ba2940188cf1e6bcbf4 Mon Sep 17 00:00:00 2001 From: zephex Date: Sat, 20 Apr 2024 13:34:53 +0530 Subject: idk whats happening --- src/app/manga/[title]/[id]/buttons.jsx | 108 ++++++++++++++++----------------- 1 file changed, 54 insertions(+), 54 deletions(-) (limited to 'src/app/manga/[title]/[id]/buttons.jsx') diff --git a/src/app/manga/[title]/[id]/buttons.jsx b/src/app/manga/[title]/[id]/buttons.jsx index 4c11705..a6c8d75 100644 --- a/src/app/manga/[title]/[id]/buttons.jsx +++ b/src/app/manga/[title]/[id]/buttons.jsx @@ -1,54 +1,54 @@ -"use client"; - -import styles from "./info.module.css"; -import Link from "next/link"; -import { storeLocal } from "../../history/storeData"; - -export default function Buttons({ content: data }) { - function store_to_local(title, chapter, volume, image, id, id2) { - let data = { - title: title, - chapter: chapter, - volume: volume, - image: image, - id: id, - mangaId: id2, - }; - storeLocal(data); - } - - return ( -
- {data.chapters && - data.chapters.map((item, index) => { - if (item.pages !== 0) { - return ( - { - store_to_local( - data.title.english || data.title.romaji, - parseInt(item.chapterNumber), - parseInt(item.volumeNumber), - data.image, - item.id, - data.id - ); - }} - > - - - ); - } - })} -
- ); -} +"use client"; + +import styles from "./info.module.css"; +import Link from "next/link"; +import { storeLocal } from "../../history/storeData"; + +export default function Buttons({ content: data }) { + function store_to_local(title, chapter, volume, image, id, id2) { + let data = { + title: title, + chapter: chapter, + volume: volume, + image: image, + id: id, + mangaId: id2, + }; + storeLocal(data); + } + + return ( +
+ {data.chapters && + data.chapters.map((item, index) => { + if (item.pages !== 0) { + return ( + { + store_to_local( + data.title.english || data.title.romaji, + parseInt(item.chapterNumber), + parseInt(item.volumeNumber), + data.image, + item.id, + data.id + ); + }} + > + + + ); + } + })} +
+ ); +} -- cgit v1.2.3